package cn.sumpu.app.guoguojie.biz.impl;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.biz.LeaveMessageBiz;
import cn.sumpu.app.guoguojie.dao.LeaveMessageDao;
import cn.sumpu.app.guoguojie.domain.LeaveMessage;
import cn.sumpu.app.guoguojie.domain.Ext.LeaveMessageExt;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public class LeaveMessageBizImpl implements LeaveMessageBiz {
	private LeaveMessageDao leaveMessageDao;

	public void setLeaveMessageDao(LeaveMessageDao leaveMessageDao) {
		this.leaveMessageDao = leaveMessageDao;
	}

	@Override
	public void insert(LeaveMessage leaveMessage) throws AppBusinessException {
		leaveMessageDao.insert(leaveMessage);

	}

	@Override
	public List<LeaveMessageExt> getLeaveMessageList(Map<String, Object> map)
			throws AppBusinessException {
		
		return leaveMessageDao.getLeaveMessageList(map);
	}

	@Override
	public void delete(String id) throws AppBusinessException {
		leaveMessageDao.delete(id);

	}

}
